package com.hongning.railway.ui.main.mine.partcheck.itemviewmodel;

import android.databinding.ObservableField;
import android.support.annotation.NonNull;

import com.hongning.railway.entity.resbean.ResKaoHeBean;
import com.hongning.railway.ui.main.mine.partcheck.PartyCheckDetailFragmentViewModel;

import me.goldze.mvvmhabit.base.MultiItemViewModel;

public class PartCheckDetailNormalItemViewModel extends MultiItemViewModel<PartyCheckDetailFragmentViewModel> {

    public ObservableField<String> title = new ObservableField<>();
    public ObservableField<String> score = new ObservableField<>();
    public PartCheckDetailNormalItemViewModel(@NonNull PartyCheckDetailFragmentViewModel viewModel, ResKaoHeBean.DataBean.ChildrenBean res) {
        super(viewModel);
        title.set(res.getName());
        score.set(res.getTotleScore()+"分");
    }

    @Override
    public Integer getItemType() {
        return 2;
    }
}
